home *** CD-ROM | disk | FTP | other *** search
- program PrintOut;
- uses WinCrt;
- var
- F, P: Text;
- FileName: String[128];
- S: String;
- begin
- Write('File to print? ');
- Readln(FileName);
- if Length(FileName) > 0 then
- begin
- Assign(P, 'PRN');
- Rewrite(P);
- Assign(F, FileName);
- Reset(F);
- Write('Printing...');
- while not Eof(F) do
- begin
- Readln(F, S);
- Writeln(P, S)
- end;
- Writeln;
- Writeln('Done printing');
- Close(F); Close(P)
- end;
- Writeln('Press Alt+F4 to close window')
- end.
-
- {--------------------------------------------------------------
- Copyright (c) 1991 by Tom Swan. All rights reserved.
- Revision 1.00 Date: 4/09/1991
- ---------------------------------------------------------------}
-